package edu.spec.wyn.week08.class2;

public class Bear extends Animal implements IHibernate,IAnimal {
    public String hibernate = "三个月";
    public Bear(){

    }
    public Bear(String name, String food, String area) {
        super(name,food,area);
    }

    @Override
    String findFood() {
        return super.getName()+"找"+getFood();
    }

    @Override
    String wholeLife() {
        return born()+"   "+findFood()+"   "+eat()+"   "+old()+"   "+sick()+"   "+die();

    }

    @Override
    public String born() {
        return super.getName()+"出生在北极";
    }

    @Override
    public String old() {
        return super.getName()+"三岁";
    }

    @Override
    public String sick() {
        return super.getName()+"会感冒";
    }

    @Override
    public String die() {
        return super.getName()+"被饿死";
    }

    @Override
    public String hibernate() {
        return super.getName()+"冬眠三个月";
    }
}
